﻿var clickEvent  = 'ontouchstart' in window ? 'touchstart' : 'click';
var resizeEvent = 'onorientationchange' in window && fn.browser.ios ? 'orientationchange' : 'resize';
var $o = {}, swipers = {};
$(document).ready(function(e) {
	$o = {
		win:$(window),
		document:$(document),
		html:$('html'),
		body:$('body'),
		navbarToggle : $('#navbarToggle,#navbarToggleMask'),
		header : $('#header'),
		footer : $('#footer'),
		cateNav : $('#cateNav'),
		searchBar : $('.search-bar'),
		searchBox: $('#searchBox'),
		searchBoxM: $('#searchBox-m'),
	};
	if(fn.browser.mobile) {
		$o.body.width($o.body.width());
		$o.body.height($o.body.height());
	}
	$.get('header.html', function(data){
		$o.header.html(data);
	});
	$.get('footer.html', function(data){
		$o.footer.html(data);
	});
	// fn.swiper();
	// browser.pc && fn.gotoTop();
	// fn.initVideo();
});






